package com.pojo;

public class PetShop {
    public static Pet getCat() {
        return new Cat();
    }
    public static Pet getDog() {
        return new Dog();
    }
    public static Pet getPet(String petName) {
        if (petName.equals("dog")) {
            return new Dog();
        } else  {
            return new Cat();
        }
    }
}
